package com.js.nickcar.entity.remote;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by LZY on 2017/10/4.
 */

public class CarModelBean implements Parcelable {

    private String car_model_id;
    private String model_name;
    private String car_model_year_id;

    public String getCar_model_id() {
        return car_model_id;
    }

    public void setCar_model_id(String car_model_id) {
        this.car_model_id = car_model_id;
    }

    public String getModel_name() {
        return model_name;
    }

    public void setModel_name(String model_name) {
        this.model_name = model_name;
    }

    public String getCar_model_year_id() {
        return car_model_year_id;
    }

    public void setCar_model_year_id(String car_model_year_id) {
        this.car_model_year_id = car_model_year_id;
    }

    @Override
    public String toString() {
        return "CarModelBean{" +
                "car_model_id='" + car_model_id + '\'' +
                ", model_name='" + model_name + '\'' +
                ", car_model_year_id='" + car_model_year_id + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.car_model_id);
        dest.writeString(this.model_name);
        dest.writeString(this.car_model_year_id);
    }

    public CarModelBean() {
    }

    protected CarModelBean(Parcel in) {
        this.car_model_id = in.readString();
        this.model_name = in.readString();
        this.car_model_year_id = in.readString();
    }

    public static final Parcelable.Creator<CarModelBean> CREATOR = new Parcelable.Creator<CarModelBean>() {
        @Override
        public CarModelBean createFromParcel(Parcel source) {
            return new CarModelBean(source);
        }

        @Override
        public CarModelBean[] newArray(int size) {
            return new CarModelBean[size];
        }
    };
}
